﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace EnergyDB1
{
    partial class dbSelect_Form : Form
    {
        public dbSelect_Form()
        {
            InitializeComponent();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex == 0)
            {
                label5.Text = "日度";
                label7.Text = "涵盖各主要煤种的产销、库存、进出口、价格以及重点企业、财务数据等多个专题逾1500项指标内容。";
            }
            else if (listBox1.SelectedIndex == 1)
            {
                label5.Text = "日度";
                label7.Text = "";
            }
            else if (listBox1.SelectedIndex == 2)
            {
                label5.Text = "日度";
                label7.Text = "广泛收录了电力行业产品价格、产品产量和消费量、产品进出口、行业财务指标等8个专题上千项指标内容，及时反映包括电力生产、供应、销售、消费各环节的全面统计数据。";
            }
            else if (listBox1.SelectedIndex == 3)
            {
                label5.Text = "月度";
                label7.Text = "提供国家统计局发布的近60年的统计数据，涵盖国民经济核算、固定资产投资、国内贸易、财政金融、价格指数等20多个专题，38000多个指标。";
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex == 0)
            {
                Form form = new coal_Form();
                form.MdiParent = this.MdiParent;
                form.WindowState = FormWindowState.Normal;
                form.StartPosition = FormStartPosition.WindowsDefaultLocation;
                form.Show();
                this.Hide();
            }
        }

        private void dbSelect_Form_Load(object sender, EventArgs e)
        {
            listBox1.SelectedIndex = 0;
        }
    }
}
